package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 司机加油
 * </p>
 *
 * @author tjy
 * @since 2021-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="HsmwVehicleRefueling对象", description="司机加油")
public class HsmwVehicleRefueling extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "加油量照片")
    private String refuelingVolumePhoto;

    @ApiModelProperty(value = "加油量")
    private String fuelVolume;

    @ApiModelProperty(value = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    @ApiModelProperty(value = "提交地点")
    private String submitAddress;

    @ApiModelProperty(value = "对应司机id")
    private String driverId;


    @ApiModelProperty(value = "名称")
    @TableField(exist = false)
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "车牌号")
    private String vehiclePlate;

    @ApiModelProperty(value = "加油状态确认默认0：未确认，1：已确认")
    private String status;

    @ApiModelProperty(value = "车辆id")
    private String vehicleId;

    @TableField(exist = false)
    private String statisticsTime;


    @TableField(exist = false)
    private List<HsmwPicture> hsmwPictures;

    @ApiModelProperty(value = "图片列表")
    @TableField(exist = false)
    private List<HashMap> picList;


    @ApiModelProperty(value = "加油站id")
    private String gasId;

    @ApiModelProperty(value = "加油站名称")
    private String gasName;

}
